<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"  %> <!--后面的是别名，随便起-->
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'c.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <body> 
    ilThis is my JSP page. <br>
   <%request.setAttribute("name","ls"); %>
   <!-- c out 输出 -->
   ${name }|<%=request.getAttribute("name") %>|<c:out value="${name}"></c:out><br/>
   <!--set用于保存数据 -->
   <c:set scope="application" value="${totalCount+1}"></c:set>
   <c:set scope="session" value="${count+1}"></c:set>
  
   用户访问量：${count }
   总访问量：${tatalCount }
   
  </body>
</html>
